/*******************************************************************************
 * Size: 18 px
 * Bpp: 4
 * Opts: --bpp 4 --size 18 --no-compress --font 微软雅黑Bbold.ttf --symbols 0123456789:年月日  --format lvgl -o lv_font_yahei_bold_18.c
 ******************************************************************************/
#define LV_LVGL_H_INCLUDE_SIMPLE
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef LV_FONT_YAHEI_BOLD_18
#define LV_FONT_YAHEI_BOLD_18 1
#endif

#if LV_FONT_YAHEI_BOLD_18

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+0020 " " */

    /* U+0030 "0" */
    0x0, 0x7, 0xdf, 0xea, 0x20, 0x0, 0xa, 0xff,
    0xff, 0xfe, 0x20, 0x5, 0xff, 0xb3, 0x9f, 0xfa,
    0x0, 0xcf, 0xf1, 0x0, 0xef, 0xf0, 0xf, 0xfc,
    0x0, 0xa, 0xff, 0x33, 0xff, 0xa0, 0x0, 0x8f,
    0xf5, 0x4f, 0xf9, 0x0, 0x7, 0xff, 0x64, 0xff,
    0x90, 0x0, 0x7f, 0xf6, 0x4f, 0xf9, 0x0, 0x8,
    0xff, 0x52, 0xff, 0xb0, 0x0, 0xaf, 0xf2, 0xe,
    0xff, 0x10, 0xe, 0xfe, 0x0, 0x8f, 0xfb, 0x39,
    0xff, 0x80, 0x1, 0xdf, 0xff, 0xff, 0xc0, 0x0,
    0x1, 0x9e, 0xfe, 0x80, 0x0,

    /* U+0031 "1" */
    0x0, 0x15, 0x8c, 0x40, 0x0, 0x5e, 0xff, 0xff,
    0x40, 0x0, 0x7f, 0xff, 0xff, 0x40, 0x0, 0x46,
    0x39, 0xff, 0x40, 0x0, 0x0, 0x8, 0xff, 0x40,
    0x0, 0x0, 0x8, 0xff, 0x40, 0x0, 0x0, 0x8,
    0xff, 0x40, 0x0, 0x0, 0x8, 0xff, 0x40, 0x0,
    0x0, 0x8, 0xff, 0x40, 0x0, 0x0, 0x8, 0xff,
    0x40, 0x0, 0x0, 0x8, 0xff, 0x40, 0x0, 0x14,
    0x4a, 0xff, 0x74, 0x40, 0x6f, 0xff, 0xff, 0xff,
    0xf1, 0x6f, 0xff, 0xff, 0xff, 0xf1,

    /* U+0032 "2" */
    0x4, 0xae, 0xfe, 0xb3, 0x0, 0x4f, 0xff, 0xff,
    0xff, 0x40, 0x5f, 0x95, 0x5b, 0xff, 0xc0, 0x22,
    0x0, 0x0, 0xff, 0xf0, 0x0, 0x0, 0x0, 0xef,
    0xf0, 0x0, 0x0, 0x2, 0xff, 0xb0, 0x0, 0x0,
    0xb, 0xff, 0x30, 0x0, 0x0, 0xaf, 0xf8, 0x0,
    0x0, 0x9, 0xff, 0x90, 0x0, 0x0, 0xaf, 0xf8,
    0x0, 0x0, 0xa, 0xff, 0x70, 0x0, 0x0, 0xaf,
    0xfc, 0x66, 0x66, 0x50, 0xff, 0xff, 0xff, 0xff,
    0xe0, 0xff, 0xff, 0xff, 0xff, 0xe0,

    /* U+0033 "3" */
    0x7, 0xce, 0xfd, 0x81, 0x1, 0xff, 0xff, 0xff,
    0xd0, 0x1c, 0x63, 0x5e, 0xff, 0x60, 0x0, 0x0,
    0x6f, 0xf8, 0x0, 0x0, 0x7, 0xff, 0x50, 0x3,
    0x37, 0xff, 0xd0, 0x3, 0xff, 0xff, 0x80, 0x0,
    0x3f, 0xff, 0xff, 0x90, 0x0, 0x0, 0x3b, 0xff,
    0x80, 0x0, 0x0, 0xf, 0xfe, 0x0, 0x0, 0x1,
    0xff, 0xe9, 0x95, 0x35, 0xcf, 0xfa, 0x9f, 0xff,
    0xff, 0xfd, 0x13, 0xbe, 0xff, 0xd8, 0x0,

    /* U+0034 "4" */
    0x0, 0x0, 0x3, 0xff, 0xf0, 0x0, 0x0, 0x0,
    0xdf, 0xff, 0x0, 0x0, 0x0, 0x7f, 0xff, 0xf0,
    0x0, 0x0, 0x2f, 0xfb, 0xff, 0x0, 0x0, 0xb,
    0xf8, 0xaf, 0xf0, 0x0, 0x5, 0xfd, 0xa, 0xff,
    0x0, 0x0, 0xef, 0x40, 0xaf, 0xf0, 0x0, 0x9f,
    0xa0, 0xa, 0xff, 0x0, 0x3f, 0xf2, 0x0, 0xaf,
    0xf0, 0xa, 0xff, 0xff, 0xff, 0xff, 0xf9, 0xaf,
    0xff, 0xff, 0xff, 0xff, 0x90, 0x0, 0x0, 0xa,
    0xff, 0x0, 0x0, 0x0, 0x0, 0xaf, 0xf0, 0x0,
    0x0, 0x0, 0xa, 0xff, 0x0,

    /* U+0035 "5" */
    0x1f, 0xff, 0xff, 0xff, 0x61, 0xff, 0xff, 0xff,
    0xf6, 0x1f, 0xf9, 0x55, 0x55, 0x21, 0xff, 0x60,
    0x0, 0x0, 0x1f, 0xf6, 0x0, 0x0, 0x1, 0xff,
    0xff, 0xea, 0x20, 0x1f, 0xff, 0xff, 0xfe, 0x20,
    0x54, 0x46, 0xdf, 0xfa, 0x0, 0x0, 0x2, 0xff,
    0xe0, 0x0, 0x0, 0xf, 0xff, 0x0, 0x0, 0x2,
    0xff, 0xd7, 0xa5, 0x35, 0xdf, 0xf7, 0x7f, 0xff,
    0xff, 0xfb, 0x3, 0xbe, 0xff, 0xc6, 0x0,

    /* U+0036 "6" */
    0x0, 0x0, 0x6c, 0xff, 0xd5, 0x0, 0x0, 0xcf,
    0xff, 0xff, 0x80, 0x0, 0xaf, 0xfb, 0x43, 0x65,
    0x0, 0x3f, 0xfb, 0x0, 0x0, 0x0, 0x9, 0xff,
    0x20, 0x0, 0x0, 0x0, 0xdf, 0xe3, 0xcf, 0xe8,
    0x0, 0xf, 0xfe, 0xff, 0xff, 0xfa, 0x0, 0xff,
    0xfa, 0x34, 0xef, 0xf2, 0xf, 0xff, 0x0, 0x7,
    0xff, 0x60, 0xef, 0xe0, 0x0, 0x5f, 0xf6, 0xa,
    0xff, 0x20, 0x8, 0xff, 0x40, 0x4f, 0xfc, 0x46,
    0xff, 0xe0, 0x0, 0x9f, 0xff, 0xff, 0xf4, 0x0,
    0x0, 0x6d, 0xfe, 0xb3, 0x0,

    /* U+0037 "7" */
    0x1f, 0xff, 0xff, 0xff, 0xff, 0x41, 0xff, 0xff,
    0xff, 0xff, 0xf3, 0x5, 0x55, 0x55, 0x5e, 0xfd,
    0x0, 0x0, 0x0, 0x3, 0xff, 0x70, 0x0, 0x0,
    0x0, 0x9f, 0xf1, 0x0, 0x0, 0x0, 0x1f, 0xfa,
    0x0, 0x0, 0x0, 0x7, 0xff, 0x40, 0x0, 0x0,
    0x0, 0xdf, 0xe0, 0x0, 0x0, 0x0, 0x4f, 0xf8,
    0x0, 0x0, 0x0, 0xb, 0xff, 0x20, 0x0, 0x0,
    0x1, 0xff, 0xc0, 0x0, 0x0, 0x0, 0x8f, 0xf6,
    0x0, 0x0, 0x0, 0xe, 0xff, 0x0, 0x0, 0x0,
    0x5, 0xff, 0x90, 0x0, 0x0,

    /* U+0038 "8" */
    0x0, 0x18, 0xdf, 0xea, 0x30, 0x0, 0x1e, 0xff,
    0xff, 0xff, 0x50, 0x9, 0xff, 0x81, 0x5f, 0xfd,
    0x0, 0xcf, 0xf0, 0x0, 0xcf, 0xf0, 0xa, 0xff,
    0x20, 0xe, 0xfb, 0x0, 0x2e, 0xfe, 0x7d, 0xfe,
    0x30, 0x0, 0x2c, 0xff, 0xfc, 0x10, 0x0, 0xa,
    0xff, 0xdf, 0xfc, 0x10, 0xa, 0xff, 0x40, 0x4f,
    0xfd, 0x1, 0xff, 0x90, 0x0, 0x8f, 0xf3, 0x2f,
    0xf9, 0x0, 0x7, 0xff, 0x40, 0xff, 0xf5, 0x14,
    0xef, 0xf1, 0x6, 0xff, 0xff, 0xff, 0xf7, 0x0,
    0x3, 0xbe, 0xfd, 0xa3, 0x0,

    /* U+0039 "9" */
    0x0, 0x19, 0xef, 0xe8, 0x0, 0x0, 0x2e, 0xff,
    0xff, 0xfc, 0x0, 0xb, 0xff, 0x84, 0xaf, 0xf7,
    0x1, 0xff, 0xc0, 0x0, 0xef, 0xd0, 0x3f, 0xf9,
    0x0, 0xb, 0xff, 0x12, 0xff, 0xb0, 0x0, 0xcf,
    0xf2, 0xe, 0xff, 0x73, 0x8f, 0xff, 0x30, 0x6f,
    0xff, 0xff, 0xef, 0xf2, 0x0, 0x5d, 0xfe, 0x79,
    0xff, 0x0, 0x0, 0x0, 0x0, 0xcf, 0xd0, 0x0,
    0x0, 0x0, 0x4f, 0xf7, 0x0, 0x57, 0x43, 0x7f,
    0xfe, 0x10, 0x7, 0xff, 0xff, 0xff, 0x30, 0x0,
    0x4c, 0xef, 0xe9, 0x20, 0x0,

    /* U+003A ":" */
    0x9, 0xfb, 0x1, 0xff, 0xf3, 0xa, 0xfb, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x9f, 0xb0, 0x1f, 0xff, 0x30, 0x9f,
    0xb0,

    /* U+5E74 "年" */
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x9e, 0xc2, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x1, 0xff, 0xe2, 0x22, 0x22,
    0x22, 0x22, 0x20, 0x0, 0x9, 0xff, 0xff, 0xff,
    0xff, 0xff, 0xff, 0xf2, 0x0, 0x3f, 0xff, 0xff,
    0xff, 0xff, 0xff, 0xff, 0xf2, 0x1, 0xef, 0xf3,
    0x11, 0x2f, 0xf7, 0x11, 0x11, 0x10, 0x1d, 0xff,
    0x70, 0x0, 0x1f, 0xf7, 0x0, 0x0, 0x0, 0x1e,
    0xff, 0x66, 0x66, 0x7f, 0xfa, 0x66, 0x66, 0x20,
    0x5, 0xde, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x50, 0x0, 0x1d, 0xfe, 0xdd, 0xdf, 0xfe, 0xdd,
    0xdd, 0x40, 0x0, 0xd, 0xf9, 0x0, 0x1f, 0xf7,
    0x0, 0x0, 0x0, 0x0, 0xd, 0xf9, 0x0, 0x1f,
    0xf7, 0x0, 0x0, 0x0, 0x16, 0x6e, 0xfb, 0x66,
    0x7f, 0xfa, 0x66, 0x66, 0x64, 0x4f, 0xff, 0xff,
    0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x3d, 0xdd,
    0xdd, 0xdd, 0xdf, 0xfe, 0xdd, 0xdd, 0xda, 0x0,
    0x0, 0x0, 0x0, 0x1f, 0xf7, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x1f, 0xf7, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x1f, 0xf7, 0x0,
    0x0, 0x0,

    /* U+65E5 "日" */
    0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef,
    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xef, 0xe8,
    0x88, 0x88, 0x88, 0x8d, 0xff, 0xef, 0xc0, 0x0,
    0x0, 0x0, 0xb, 0xff, 0xef, 0xc0, 0x0, 0x0,
    0x0, 0xb, 0xff, 0xef, 0xc0, 0x0, 0x0, 0x0,
    0xb, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff,
    0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0xef, 0xe7, 0x77, 0x77, 0x77, 0x7d, 0xff, 0xef,
    0xc0, 0x0, 0x0, 0x0, 0xb, 0xff, 0xef, 0xc0,
    0x0, 0x0, 0x0, 0xb, 0xff, 0xef, 0xc0, 0x0,
    0x0, 0x0, 0xb, 0xff, 0xef, 0xe8, 0x88, 0x88,
    0x88, 0x8e, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff,
    0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff,
    0xff, 0xef, 0xc0, 0x0, 0x0, 0x0, 0xb, 0xff,

    /* U+6708 "月" */
    0x0, 0xf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0xf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0xf, 0xfc, 0x66, 0x66, 0x66, 0x6c, 0xff,
    0x0, 0xf, 0xfa, 0x0, 0x0, 0x0, 0xa, 0xff,
    0x0, 0xf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0xf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0xf, 0xfc, 0x66, 0x66, 0x66, 0x6c, 0xff,
    0x0, 0xf, 0xfa, 0x0, 0x0, 0x0, 0xa, 0xff,
    0x0, 0xf, 0xfb, 0x44, 0x44, 0x44, 0x4b, 0xff,
    0x0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    0x0, 0x7f, 0xf6, 0x11, 0x11, 0x11, 0x1a, 0xff,
    0x0, 0xef, 0xf3, 0x0, 0x0, 0x0, 0xa, 0xff,
    0xa, 0xff, 0xd0, 0x0, 0x9, 0x99, 0xaf, 0xfe,
    0x1e, 0xff, 0x50, 0x0, 0xb, 0xff, 0xff, 0xfa,
    0x2, 0xd9, 0x0, 0x0, 0x7, 0xff, 0xff, 0xb1,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 86, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 0, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 77, .adv_w = 178, .box_w = 10, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
    {.bitmap_index = 147, .adv_w = 178, .box_w = 10, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
    {.bitmap_index = 217, .adv_w = 178, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
    {.bitmap_index = 280, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 357, .adv_w = 178, .box_w = 9, .box_h = 14, .ofs_x = 1, .ofs_y = 0},
    {.bitmap_index = 420, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 497, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 574, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 651, .adv_w = 178, .box_w = 11, .box_h = 14, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 728, .adv_w = 82, .box_w = 5, .box_h = 10, .ofs_x = 0, .ofs_y = 0},
    {.bitmap_index = 753, .adv_w = 288, .box_w = 18, .box_h = 18, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 915, .adv_w = 288, .box_w = 14, .box_h = 16, .ofs_x = 2, .ofs_y = -2},
    {.bitmap_index = 1027, .adv_w = 288, .box_w = 16, .box_h = 17, .ofs_x = 0, .ofs_y = -3}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
    0x17, 0x18, 0x19, 0x1a, 0x5e54, 0x65c5, 0x66e8
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 32, .range_length = 26345, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 15, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t lv_font_yahei_bold_18 = {
#else
lv_font_t lv_font_yahei_bold_18 = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 19,          /*The maximum line height required by the font*/
    .base_line = 3,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = -2,
    .underline_thickness = 1,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if LV_FONT_YAHEI_BOLD_18*/

